package com.wh.hotel.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 酒店房型日历表
 * </p>
 *
 * @author 
 * @since 2023-05-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("hotel_room_type_calendar")
public class HotelRoomTypeCalendar extends Model<HotelRoomTypeCalendar> {

    private static final long serialVersionUID=1L;

    /**
     * 房价日历ID
     */
      @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 创建时间
     */
    private Date createDt;

    /**
     * 更新时间
     */
    private Date updateDt;

    /**
     * 房型id
     */
    private Long roomTypeId;

    /**
     * 酒店id
     */
    private Long hotelId;

    /**
     * 房型命中的策略id
     */
    private Long strategyId;

    /**
     * 售卖日期
     */
    private Date sellDate;

    /**
     * 房态, 1=正常, 2=关房
     */
    private Integer roomTypeStatus;

    /**
     * 房型原价, 单位：分
     */
    private Integer orgPrice;

    /**
     * 总库存
     */
    private Integer totalStock;

    /**
     * 剩余库存
     */
    private Integer remainStock;


    public static final String ID = "id";

    public static final String CREATE_DT = "create_dt";

    public static final String UPDATE_DT = "update_dt";

    public static final String ROOM_TYPE_ID = "room_type_id";

    public static final String HOTEL_ID = "hotel_id";

    public static final String STRATEGY_ID = "strategy_id";

    public static final String SELL_DATE = "sell_date";

    public static final String ROOM_TYPE_STATUS = "room_type_status";

    public static final String ORG_PRICE = "org_price";

    public static final String TOTAL_STOCK = "total_stock";

    public static final String REMAIN_STOCK = "remain_stock";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
